package com.tc.workflow.enums;

import com.vip.vpal.workflow.WorkflowException;
import org.team4u.kit.core.error.ErrorCode;

public enum ErrorCodePlus implements ErrorCode {

    PARAM_ERROR("420", "参数错误"),


    ;

    private String message;
    private String groupCode;

    ErrorCodePlus(String groupCode, String message) {
        this.groupCode = groupCode;
        this.message = message;
    }

    public String getMessage() {
        return this.message;
    }

    public String getCode() {
        return this.groupCode + "_" + this.name();
    }

    public WorkflowException createException(String code, String message) {
        return new WorkflowException(code, message);
    }
}
